package shapes;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;

import trajectories.Trajectory;

public class Circle extends Shape {

    public Circle(int x, int y, Color color, Trajectory trajectory) {
        this.xPos = x;
        this.yPos = y;
        this.color = color;
        this.trajectory = trajectory;
    }

    @Override
    public void paintComponent(Graphics g) {
        g.setColor(color);
        Graphics2D g2 = (Graphics2D) g;
        g2.fill(new Ellipse2D.Double(xPos, yPos, getWidth(), getHeight()));
    }
}
